<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/Production.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/Production.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_production_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef PRODUCTION_H</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define PRODUCTION_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_entrepot_8h.html" title="Définit la structure de l&#39;entrepôt.">Entrepot.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="_arbre_tech_8h.html" title="Définit l&#39;arbre des technologies.">ArbreTech.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 
<a name="l00020"></a><a class="code" href="struct_production.html">00020</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00021"></a>00021 {
<a name="l00022"></a><a class="code" href="struct_production.html#abe308d273ff51ad86ff02ef3ba3b6f0e">00022</a>   <span class="keywordtype">char</span>* <a class="code" href="struct_production.html#abe308d273ff51ad86ff02ef3ba3b6f0e">nom</a>; 
<a name="l00023"></a><a class="code" href="struct_production.html#a22916ff204d3f3dd29d178208f54aa42">00023</a>   <span class="keywordtype">int</span> <a class="code" href="struct_production.html#a22916ff204d3f3dd29d178208f54aa42">pourcentageProd</a>; 
<a name="l00024"></a><a class="code" href="struct_production.html#ae0951f018c495035cff7e438e90a8210">00024</a>   <span class="keywordtype">int</span> <a class="code" href="struct_production.html#ae0951f018c495035cff7e438e90a8210">vitesseProd</a>; 
<a name="l00025"></a>00025 } <a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>;
<a name="l00026"></a>00026 <span class="comment">/*================= Accesseurs/mutateurs sur la structure =================*/</span>
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#a4de56fdecdf63961efd9bfde189ef156">creerProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>** prod);
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#a8c649245b17975b8258f46b76f255a9c" title="Créé une structure Production.">initProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod);
<a name="l00047"></a>00047 <span class="keywordtype">char</span>* <a class="code" href="_production_8c.html#a1b275ec1b51a64ab633fde4fb4ed44af" title="Renvois le nom de la production.">getNomProd</a>(<span class="keyword">const</span> <a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod);
<a name="l00053"></a>00053 <span class="keywordtype">int</span> <a class="code" href="_production_8c.html#a94c4a5bca8be65d019d82f3a4242f550" title="Renvois le pourcentage d&#39;avancement de la Production.">getPourcentageProd</a>(<span class="keyword">const</span> <a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod);
<a name="l00060"></a>00060 <span class="keywordtype">int</span> <a class="code" href="_production_8c.html#a7f6c73b8e9fb4d872b4beabb217b9fd5" title="Renvois la vitesse de la production.">getVitesseProd</a>(<span class="keyword">const</span> <a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod);
<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#a1d1b1561c0f08b3a1da1522d7be5512b">setNomProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod, <span class="keywordtype">char</span>* nouvNom); <span class="comment">/*char* non mis en const car le compilateur emet un warning du fait que l&#39;on veut l&#39;attribuer à un champ de la structure et donc qu&#39;il sera peut être modifié*/</span>
<a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#a014556a8a956c1fc85a7464b1c2ced59">ajouteVitesseProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod, <span class="keywordtype">int</span> varVitesseProd);
<a name="l00085"></a>00085 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#af6c0443371475c965245057e507e83cc">ajoutePourcentageProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod, <span class="keywordtype">int</span> varPourcentageProd);
<a name="l00086"></a>00086 
<a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#aab4c7887b6572feb63c7197e167a8132">libereProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod);
<a name="l00093"></a>00093 
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#ad1cd2678eb6ff0c0c1b9f977a35c177c">detruireProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod);
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 <span class="comment">/*========= Incrementation de la production par pas de temps =========*/</span>
<a name="l00111"></a>00111 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#ae8f0ce2fb38939632a7db5728c8717e2" title="Incremente d&#39;un pas de temps la production.">incrementeProd</a>(<a class="code" href="struct_production.html" title="Définition d&#39;une Production.">Production</a>* prod, <a class="code" href="struct_entrepot.html" title="Informations définissant l&#39;entrepôt.">Entrepot</a>* entrepot);
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="preprocessor">#endif</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00115"></a>00115 <span class="comment">/*============================== Fonction test ======================*/</span>
<a name="l00121"></a>00121 <span class="keywordtype">void</span> <a class="code" href="_production_8c.html#a79de9a930f7e00f9331fc2b52970b295" title="Teste les fonctions de la structure Production.">testProd</a>();
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
